package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductFormatPriceMapper;
import com.hcb.micro.dto.ProductFormatPrice;
import com.hcb.micro.service.IProductFormatPriceService;

@Service("ProductFormatPriceService")
public class ProductFormatPriceServiceImpl implements IProductFormatPriceService {

	@Autowired
	ProductFormatPriceMapper ProductFormatPriceMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ProductFormatPriceMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductFormatPrice record) {
		return ProductFormatPriceMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductFormatPrice record) {
		return ProductFormatPriceMapper.insertSelective(record);
	}

	@Override
	public ProductFormatPrice selectByPrimaryKey(Integer id) {
		return ProductFormatPriceMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductFormatPrice record) {
		return ProductFormatPriceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductFormatPrice record) {
		return ProductFormatPriceMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductFormatPrice> selectByPara(Map<String, Object> para) {
		return ProductFormatPriceMapper.selectByPara(para);
	}
	
	@Override
	public ProductFormatPrice selectByAllId(Map<String, Object> para) {
		return ProductFormatPriceMapper.selectByAllId(para);
	}

	@Override
	public int deleteByProductSizeId(Integer productSizeId) {
		return ProductFormatPriceMapper.deleteByProductSizeId(productSizeId);
	}

	@Override
	public int deleteByProductColorId(Integer productColorId) {
		return ProductFormatPriceMapper.deleteByProductColorId(productColorId);
	}

	@Override
	public int deleteByProductStyleId(Integer productStyleId) {
		return ProductFormatPriceMapper.deleteByProductStyleId(productStyleId);
	}

	@Override
	public int deleteByProductProcessingMethodsId(Integer productProcessingMethodsId) {
		return ProductFormatPriceMapper.deleteByProductProcessingMethodsId(productProcessingMethodsId);
	}

}
